
<?php if (isset($category->title)): ?>
	<h2 class="category_title"><?php echo $category->title; ?></h2>
<?php endif; ?>

<?php if (!empty($blog)): ?>

<?php foreach ($blog as $post): ?>
<article id="main-body" class="row-fluid post-article-container {{theme:options:imgBox}}-{{theme:options:imgBoxType}}">
	<div class="span12">
    	<header>
        	<h3 class="category_title"><?php echo  $post->title; ?> 
            <?php echo  anchor('blog/' .date('Y/m', $post->created_on) .'/'. 
		$post->slug, 'read', 'class="btn btn-small btn-info"'); ?></h3>
        
        <div class="row-fluid">
         <?php if($post->keywords): ?>
			<div class="span6"><?php echo lang('blog_tagged_label');?>:
				<?php echo $post->keywords; ?></div>
        
			<?php endif; ?>
            </div>
        
            
        </header>
        
        
        <p><?php echo $post->intro; ?></p>
        
        
        	<footer>
            	<div class="span4">
                <?php echo lang('blog_posted_label');?>: <?php echo format_date($post->created_on); ?>
                </div>
                
                <?php if($post->category_slug): ?>
			<div class="span4"></div>
				<?php echo lang('blog_category_label');?>: 
				<?php echo anchor('blog/category/'.$post->category_slug, $post->category_title);?>
			
			<?php endif; ?>
        	</footer>
    </div>
</article>
<?php endforeach; ?>

<?php echo $pagination['links']; ?>

<?php else: ?>
	<p><?php echo lang('blog_currently_no_posts');?></p>
<?php endif; ?>
